package serverGUI;

import java.awt.Canvas;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Polygon;

@SuppressWarnings("serial")
public class RadarCanvas extends Canvas {
	
	GUI gui;
	Polygon polygon;
	
	public RadarCanvas (GUI gui, Polygon polygon) {
		this.gui = gui;
		this.polygon = polygon;
		setBounds(2, 2, 400, 200);
		setBackground (Color.GRAY); 
	}

	public void paint (Graphics g) {
	    Graphics2D g2;
	    g2 = (Graphics2D) g;
	    g2.setColor (Color.GREEN);
		g2.fillPolygon(polygon);
		g2.drawPolygon(polygon);
	}
}
